package me.zhengjie.gas.proto.recv;


import me.zhengjie.gas.proto.TankerComm;

/**
 * PC机向加油机向读总累A3H的回复
 */
public class A3Comm extends TankerComm {

    // 加油量总累
    private long total;

    // 加油金额总累
    private long amount;

    public A3Comm() {
        Cmd = (byte) 0xA3;
    }

    @Override
    protected boolean decode() {
        byte[] data = getDATA();

        total = byteToBcd(data, 1, 5);
        amount = byteToBcd(data, 6, 5);
        return true;
    }
}
